/*
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */

#ifndef _DRAWMENU_H
#define _DRAWMENU_H

#include <QMenu>
#include <QAction>
#include <QWidget>
#include <QPointF>

#include "../gType.h"
#include "drawArea.h"
#include "controlPoints.h"

class drawArea;

class drawMenu: public QMenu{

	Q_OBJECT

	private:
		QAction *open;
		QAction *save;
		QAction *saveAs;
		QAction *focus;
		QAction *numerate;
		QAction *showMiddle;
		QAction *distance;
		QAction *zoomIn;
		QAction *zoomOut;
		QAction *zoomOriginal;
		
		drawArea *area;
		QMenu *viewMenu;
		
		const QWidget *getTopWidget() const;

	public slots:
		void focusSlot();
		void zoomInSlot();
		void zoomOutSlot();
		void zoomOriginalSlot();

	public:
		drawMenu(drawArea *);
		
		void setMenu();
		void setDistance(bool);
		void setNumerate(bool);
		
};

#endif
